home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / PuzzlePuzzle.swf / scripts / DefineButton2_204 / BUTTONCONDACTION on(keyPress Right).as < prev   
Encoding:
Text File  |  2005-08-05  |  306 b   |  17 lines

  1. on(keyPress "<Right>"){
  2.    if(manx < 10)
  3.    {
  4.       sound.gotoandplay("move");
  5.       man.gotoandplay("right");
  6.       manx += 1;
  7.       man._x += 35;
  8.    }
  9.    else if(manx == 10)
  10.    {
  11.       sound.gotoandplay("move");
  12.       man.gotoandplay("right");
  13.       manx = 0;
  14.       man._x -= 350;
  15.    }
  16. }
  17.